#{extends 'main.html' /}
#{set title:'Login' /} 

#{form @authenticate()}

    #{ifErrors} 
        <p class="error">
        #{errors} 
            ${error} 
        #{/errors} 
        </p>
    #{/ifErrors} 

    <p id="username-field">
        <label for="username">&{'secure.username'}</label>
        <input type="text" name="username" id="username" value="${flash.username}" />
    </p>
    <p id="password-field">
        <label for="password">&{'secure.password'}</label>
        <input type="password" name="password" id="password" value="" />
    </p>
    <p id="remember-field">
        <input type="checkbox" name="remember" id="remember" value="true" ${flash.remember ? 'checked="true"' : ''} />
        <label for="remember">&{'secure.remember'}</label>
    </p>
    <p id="signin-field">
        <input type="submit" id="signin" value="&{'secure.signin'}" />
    </p>

#{/form}